import { createApp } from 'vue'
import { createPinia } from 'pinia'

import { createYmaps } from 'vue-yandex-maps'

import App from './App.vue'
import i18n from '~/i18n/index'
import router from '~/router/index'
import '~/router/control'
import 'virtual:uno.css'
import 'vant/lib/index.css'

const pinia = createPinia()
const app = createApp(App)

app.use(pinia)
app.use(i18n)
app.use(router)

app.use(
  createYmaps({
    apikey: '20c36613-0905-4425-8e45-86c2b5fb6d35'
  })
)

app.mount('#app')
